package gov.pbc.nn.kjgl.software.view;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.bstek.dorado.data.provider.Criteria;
import com.bstek.dorado.data.provider.Page;

import gov.pbc.nn.kjgl.entity.Project;
import gov.pbc.nn.kjgl.entity.ProjectProblem;
import gov.pbc.nn.kjgl.software.dao.MyProjectProblemDao;

@Component
public class MyProjectProblemPR {
	
	@Autowired
	private MyProjectProblemDao myProjectProblemDao;
	
	@DataProvider
	public void getProjectProblem(Page<ProjectProblem> page,Criteria criteria, String Id) {
		myProjectProblemDao.getProjectProblem(page, criteria,Id);
	}
	
//	@DataProvider
//	public List<Project> getProject() {
//		return myProjectProblemDao.getProject();
//	}

	@Expose
	public void finshWork(List<String> list) {
		myProjectProblemDao.finshWork(list);
	}
	@DataResolver
	public void saveWork(List<ProjectProblem> list) {
		myProjectProblemDao.saveWork(list);
	}
}
